
/**
 * @author Johannes Riedmann
 * @author Lukas K�ll
 * @author David Medenjak
 */
public class SchwenkarmRoboter extends Roboter {

    /**
     * Amount of rotations the robot has performed.
     */
    public int rotations = 0;

    /**
     * Constructor.
     * @param id Roboter id.
     * @param mode Interface specifying it's operation mode.
     */
    public SchwenkarmRoboter(int id, OperationMode mode) {
        super(id, mode);
    }

    /**
     * Increases the amount of performed rotations.
     * @param rotationen Number of rotations to add.
     */
    public void increaseRotationen(int rotationen) {
        this.rotations += rotationen;
    }

    /**
     * Gets the count of rotations.
     * @return the amount of rotations the robot has performed yet
     */
    public int getRotationen() {
        return rotations;
    }

    /**
     * Gets the name of the roboter-type.
     * @return the Roboter type
     */
    @Override
    public String getType() {
        return "SchwenkarmRoboter";
    }
}
